import json

from django.shortcuts import render
from django.http import HttpResponse


# Create your views here.
def weather(request, year, city):
    dic = {
        "year": year,
        "city": city,
        "a": request.GET.get("a"),
        "b": request.GET.get("b"),
    }
    return HttpResponse(json.dumps(dic), content_type="application/json")
